package zhoug.chart.core;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import androidx.annotation.IntDef;

import static java.lang.annotation.RetentionPolicy.SOURCE;

/**
 * @Author: zhoug
 * @Date: 2024-02-03
 * @Description:
 */
public class MPConstant {
    public static final int LEFT = 0;//使用左轴
    public static final int RIGHT = 1;//使用右轴


    public static final int BAR_CHART = 0;//柱状图
    public static final int LINE_CHART = 1;//曲线图
    public static final int CANDLE_CHART = 2;//蜡烛图/K线图
    public static final int PIE_CHART = 3;//饼图
    public static final int RADAR_CHART = 4;//雷达图


    @IntDef({LEFT,RIGHT})
    @Retention(SOURCE)
    @Target({ElementType.FIELD,ElementType.PARAMETER,ElementType.METHOD})
    public @interface AxisDependency {
    }

    @IntDef({BAR_CHART,LINE_CHART,CANDLE_CHART,PIE_CHART,RADAR_CHART})
    @Retention(SOURCE)
    @Target({ElementType.FIELD,ElementType.PARAMETER,ElementType.METHOD})
    public @interface ChartType {
    }

}
